<base href="https://634174214.gitee.io/mytool/">
<!-- <base href="/" alt="本地链接"> -->
<link rel="shortcut icon" href="favicon.ico"  type="image/x-icon">
<link rel="stylesheet" href="font/FontAwesome-v.4.7.css">
<link rel="stylesheet" media="(min-width: 641px)" href="css/pc.css">
<link rel="stylesheet" media="(max-width:640px)" href="css/m.css">
<!--[if IE]>
    <script src="js/html5shiv.min.js"></script>
    <script src="js/respond.src.js"></script>
<![endif]-->
<script>
    // 切换环境
    var islocal = (window.location.href.indexOf('.com') > -1) ? true : false;
    // 主页的网址
    var homeUrl = islocal ? 'http://tool.wubin.com/' : 'http://tool.wubin.work/';
    // 请求的接口地址
    var apiUrl = islocal? 'http://api.wubin.com/tool/' : 'http://api.wubin.work/tool/';
    // 工具类名以及对应编号
    var toolClass = [
        {
            class: 0,
            label: '全部工具'
        },
        {
            class: 1,
            label: '开发类'
        },
        {
            class: 2,
            label: '设计类'
        },
        {
            class: 3,
            label: '功能类'
        },
        {
            class: 4,
            label: '各种接口'
        },
        {
            class: 5,
            label: '站长工具'
        },
        {
            class: 6,
            label: '汇总类'
        },
        {
            class: 7,
            label: '其他类'
        }
    ];
    
    // 根据工具名称 动态给工具添加搜索描述
    var toolAll = {
        maobi: {
            name: '毛笔字生成工具',
            keyword: '毛笔字生成maobizim',
            class: 2
        },
        ico: {
            name: '网站图标ICO生成',
            keyword: '网站图标icowangzhan',
            class: 5
        },
        markdown: {
            name: 'MarkDown在线编辑',
            keyword: 'markdown编辑bianjiqi',
            class: 3
        },
        xinapi: {
            name: '某文章接口api',
            keyword: '某文章api接口jiekouxinwang',
            class: 4
        },
        img2base64: {
            name: '图片转base64',
            keyword: 'imgtupian图片转base64',
            class: 3
        },
        qrcode: {
            name: '网址生成二维码',
            keyword: 'erweima二维码',
            class: 3
        },
        timestamp: {
            name: '时间戳生成',
            keyword: '时间戳shijianchuo',
            class: 3
        },
        placehold: {
            name: '占位图片',
            keyword: '占位图zhanweitu',
            class: 1
        },
        zhengze: {
            name: '正则表达式在线测试',
            keyword: '正则表达式zhengzebiaodashi',
            class: 3
        },
        colorcard: {
            name: '在线色卡选择器',
            keyword: '色卡seka',
            class: 2
        },
        colorchina: {
            name: '中国传统色值',
            keyword: 'zhongguosecai中国色彩',
            class: 2
        },
        colorjapan: {
            name: '日版传统色值',
            keyword: 'ribensecai日本色彩',
            class: 2
        },
        colorchina_test: {
            name: '中国传统色彩预览',
            keyword: 'zhongguosecaiyulan中国色彩预览',
            class: 2
        },
        json_one: {
            name: 'json在线格式化',
            keyword: 'json在线格式化geshihua',
            class: 1
        },
        json_two: {
            name: 'json在线校验格式化',
            keyword: 'json在线格式化geshihua',
            class: 1
        },
        less2css: {
            name: 'less转换css',
            keyword: 'less2css转换',
            class: 1
        },
        css2many: {
            name: 'css转less|sass|stylus',
            keyword: 'css转2less|sass|stylus',
            class: 1
        },
        css_format: {
            name: 'CSS压缩和格式化',
            keyword: 'css格式化geshihua压缩美化',
            class: 1
        },
        triangle: {
            name: '三角形样式生成',
            keyword: '三角形样式sanjiaoxing',
            class: 1
        },
        runcode: {
            name: '在线运行代码',
            keyword: 'php,java,js代码在线运行',
            class: 1
        },
        html_js_format: {
            name: 'HTML/JS代码格式化',
            keyword: 'htmljs代码格式化format',
            class: 1
        },
        thumb: {
            name: '生成等比缩略图',
            keyword: 'jpgpnggif缩略图',
            class: 4
        },
        jinyinke: {
            name: '金印客页面转pdf',
            keyword: 'jinyinkepdf',
            class: 3
        },
        del_zhushi: {
            name: '删除PHPJS注释',
            keyword: '删除注释zhushi',
            class: 1
        },
        html_encode: {
            name: 'HTML转换字符串实体',
            keyword: 'HTMLhtml字符串实体',
            class: 3
        },
        fuhao: {
            name: '特殊符号汇总',
            keyword: '特殊符号',
            class: 6
        },
        unicode: {
            name: 'Unicode编码转换',
            keyword: 'unicode编码',
            class: 1
        },
        urldecode: {
            name: 'url解码编码',
            keyword: 'url解码编码',
            class: 5
        },
        video2gif: {
            name: '视频截取gif',
            keyword: 'gif视频video',
            class: 3
        },
        m3u8: {
            name: 'm3u8播放器',
            keyword: 'm3u8',
            class: 5
        },
        lunar2solar: {
            name: '公历农历转换器',
            keyword: '公历农历',
            class: 5
        },
        wannianli: {
            name: '万年历',
            keyword: '公历农历万年历',
            class: 5
        },
        easycopy: {
            name: 'EasyCopy',
            keyword: 'easy复制copy',
            class: 7
        },
        splitimg: {
            name: '竖幅图片垂直切片',
            keyword: '竖幅垂直图片切片切割',
            class: 5
        },
        xin_adzt: {
            name: '信网广告专题生成器',
            keyword: '信网广告专题adzt',
            class: 5
        },
        mind_map: {
            name: 'Easy思维导图',
            keyword: '思维导图easy',
            class: 2
        },
        map2d: {
            name: 'map2D',
            keyword: 'map地图2d',
            class: 3
        },
        coderun: {
            name: 'JS在线运行',
            keyword: 'JS在线运行code',
            class: 3
        },
        todolist: {
            name: 'TodoList任务列表',
            keyword: 'todo,list',
            class: 7
        },
        clippath: {
            name: 'clip-path在线生成',
            keyword: 'clip,path',
            class: 1
        },
        easydraw: {
            name: 'Easydraw快速画板',
            keyword: 'draw,画板',
            class: 2
        },
        JS_Formatter: {
            name: 'JS-Formatter',
            keyword: 'js,格式化',
            class: 3
        },
        easy_ocr: {
            name: 'Easy-ocr',
            keyword: 'ocr,识别',
            class: 5
        },
        image_editor: {
            name: '在线PS',
            keyword: 'ps,image,editor',
            class: 3
        }
    };
</script>